<section class="main" style="max-width: 640px;margin: auto;">
    <div class="member-head">
        <div class="flex-box">
            <div class="avatar br50 memberDown flex-grow-0">
                <div class="item-pic br50">
                    {{#if user.image}}
                        <img src="{{user.image}}" class="block">
                    {{^}}
                        <img src="images/default-none-head.png" class="block">
                    {{/if}}
                </div>
            </div>
            <div class="pl15 colf fs13 info memberLeft">
                <p class="fs16 pr20 name">{{or user.nickname user.tel}} 「ID:{{user.id}}」</p>
                <div class="mt10">
                    <span class="addr-guan colf fs12">{{user.level_dict.text}}</span>
                </div>
            </div>
        </div>
        <a href="/user_edit" class="member-head__set colf">
            <i></i>
            <p>设置</p>
        </a>
    </div>

    <ul class="bb last fs14 member-body">
        {{#if show_amount}}
            <li class="bgf">
                <div class="plr10">
                    <a href="/withdraw_apply" class="fr pt10 fs12 btn-mini btn-mini_solid"
                       style="margin-top: 8px;">申请提现</a>
                    <a href="javascript:;" class="ptb10 block"><i class="mem-ico6"></i>我的钱包</a>
                </div>
                <div class="table index-nav fs12 tc bgf bb">
                    <a href="/finances" class="table-cell  br">
                        <p class="fs18 red bold">{{user.amount}}</p>
                        <p class="">可提现余额(元)</p>
                    </a>
                    <a href="/finances" class="table-cell  br">
                        <p class="fs18 blue bold">{{plus user.frozen agency_frozen_amount}}</p>
                        <p class="">冻结余额(元)</p>
                    </a>
                </div>
                <div style="color: #FC6D84; text-align: center; line-height: 30px; font-size: 12px;">
                    冻结余额在定单确认收货后自动转入可提现余额
                </div>
            </li>
        {{/if}}

        <!--
        <li class="mt10 bgf">
            <div class="plr10">
                <a href="javascript:;" class="ptb10 block"><i class="mem-ico0"></i>我的返利订单</a>
            </div>
            <div class="table bt tc fs12 member-nav">
                <a href="/orders?status=WaitPay" class="table-cell vm ptb10">
                    <i class="mem-ico1 hint-num">{{#if analyse.WaitPay}}<em></em>{{/if}}</i>
                    <p class="mt5">全部订单</p>
                </a>
                <a href="/orders?status=Pending" class="table-cell vm ptb10">
                    <i class="mem-ico2 hint-num">{{#if analyse.Pending}}<em></em>{{/if}}</i>
                    <p class="mt5">即将到账</p>
                </a>
                <a href="/orders?status=Successful" class="table-cell vm ptb10">
                    <i class="mem-ico4 hint-num">{{#if analyse.Successful}}<em></em>{{/if}}</i>
                    <p class="mt5">已到账</p>
                </a>
                <a href="/orders?status=Cancel" class="table-cell vm ptb10">
                    <i class="mem-ico5 hint-num">{{#if analyse.Cancel}}<em></em>{{/if}}</i>
                    <p class="mt5">无效订单</p>
                </a>
            </div>
        </li>
        -->

        {{#if is_partner}}
            <li class="bgf pl15 bb mt10">
                <a href="/partner_users" class="arrowR">
                    <i class="mem-ico13"></i>用户管理
                </a>
            </li>
            <li class="bgf pl15 bb">
                <a href="/partner_orders?status=Active" class="arrowR">
                    <i class="mem-ico30"></i>合伙人订单
                </a>
            </li>
            <li class="bgf pl15 bb">
                <a href="/partner_agency" class="arrowR">
                    <i class="mem-ico13"></i>代理管理
                </a>
            </li>
            <li class="bgf pl15 bb">
                <a href="/partner_settles" class="arrowR">
                    <i class="mem-ico6"></i>结算管理
                </a>
            </li>
            <li class="bgf pl15 bb">
                <a href="/partner_withdraws" class="arrowR">
                    <i class="mem-ico10"></i>提现管理
                </a>
            </li>
        {{/if}}

        {{#if is_agency}}
            <li class="bgf pl15 bb mt10">
                <a href="/fans_list" class="arrowR">
                    <i class="mem-ico13"></i>我的粉丝
                    {{#if fans_count}}
                        <em class="item-badge">{{fans_count}}</em>
                    {{/if}}
                </a>
            </li>
            <li class="bgf pl15 bb">
                <a href="/fans_orders?status=Active" class="arrowR">
                    <i class="mem-ico30"></i>粉丝订单
                    {{#if fans_orders_count}}
                        <em class="item-badge">{{fans_orders_count}}</em>
                    {{/if}}
                </a>
            </li>
        {{/if}}

        {{#if is_return}}
            <li class="bgf pl15 bb mt10">
                <a href="/my_orders" class="arrowR">
                    <i class="mem-ico13"></i>我的订单
                </a>
            </li>
        {{/if}}

        <li class="bgf pl15 bb mt10">
            <a href="/goodses_views" class="arrowR">
                <i class="mem-ico8"></i>浏览记录
            </a>
        </li>
        <li class="bgf pl15 bb">
            <a href="/goodses_searchs" class="arrowR">
                <i class="mem-ico16"></i>搜索记录
            </a>
        </li>

        <li class="bgf pl15 bb mt10">
            <a href="/suggestions" class="arrowR"><i class="mem-ico7"></i>建议反馈 <em class="item-badge">反馈有礼</em></a>
        </li>
        <li class="bgf pl15 bb">
            <a href="/customers" class="arrowR"><i class="mem-ico14"></i>我的客服</a>
        </li>
    </ul>
</section>